package com.acsior.hibernate.vo;

// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.acsior.dac.impl.hibernate.vo.GeneratorKey;
import com.acsior.dac.impl.hibernate.vo.HibernatePersistantIntegerIdVO;

/**
 * StationCashBoxMoneyContent entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "station_cash_box_money_content")
@GeneratorKey(tableName = "station_cash_box_money_content")
public class StationCashBoxMoneyContentVO extends HibernatePersistantIntegerIdVO {

	/** */
	private static final long serialVersionUID = 7181764390586144044L;

	// Fields

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "nom_cash_box_money_type_id", nullable = false)
	private NomCashBoxMoneyTypeVO moneyType;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "station_cash_box_id", nullable = false)
	private StationCashBoxVO stationCashBox;

	@Column(name = "amount", nullable = false, precision = 10)
	private double amount;

	@Column(name = "count")
	private Integer count;

	// Constructors

	/** default constructor */
	public StationCashBoxMoneyContentVO() {
		super();
	}

	// Property accessors

	/**
	 * @return стойността на moneyType
	 */
	public NomCashBoxMoneyTypeVO getMoneyType() {
		return this.moneyType;
	}

	/**
	 * @param moneyType
	 *            се залага в moneyType
	 */
	public void setMoneyType(NomCashBoxMoneyTypeVO moneyType) {
		this.moneyType = moneyType;
	}

	/**
	 * @return стойността на stationCashBox
	 */
	public StationCashBoxVO getStationCashBox() {
		return this.stationCashBox;
	}

	/**
	 * @param stationCashBox
	 *            се залага в stationCashBox
	 */
	public void setStationCashBox(StationCashBoxVO stationCashBox) {
		this.stationCashBox = stationCashBox;
	}

	/**
	 * @return стойността на amount
	 */
	public double getAmount() {
		return this.amount;
	}

	/**
	 * @param amount
	 *            се залага в amount
	 */
	public void setAmount(double amount) {
		this.amount = amount;
	}

	/**
	 * @return стойността на count
	 */
	public Integer getCount() {
		return this.count;
	}

	/**
	 * @param count
	 *            се залага в count
	 */
	public void setCount(Integer count) {
		this.count = count;
	}

}